<?php

//防止恶意调用
if (!defined('IN_MOD'))
{
    die('Hacking attempt');
}

// 扩展默认模块配置
if($configinfo['configmodule'] == "list")
{
	include_once(MODULEPARA_PATH.'/configmodule/configmodule/module/article/articlewhere.php');
	if($configinfo['modulepara'] == 'pc')include_once(MODULEPARA_PATH.'/configmodule/configmodule/module/pc/articlewhere.php');
	if($configinfo['modulepara'] == 'mobile')include_once(MODULEPARA_PATH.'/configmodule/configmodule/module/mobile/articlewhere.php');
	if($configinfo['modulepara'] == 'xcx')include_once(MODULEPARA_PATH.'/configmodule/configmodule/module/xcx/articlewhere.php');
}
if($configinfo['configmodule'] == "detail")
{
	include_once(MODULEPARA_PATH.'/configmodule/configmodule/module/article/articlewhere_detail.php');
	if($configinfo['modulepara'] == 'pc')include_once(MODULEPARA_PATH.'/configmodule/configmodule/module/pc/articlewhere_detail.php');
	if($configinfo['modulepara'] == 'mobile')include_once(MODULEPARA_PATH.'/configmodule/configmodule/module/mobile/articlewhere_detail.php');
	if($configinfo['modulepara'] == 'xcx')include_once(MODULEPARA_PATH.'/configmodule/configmodule/module/xcx/articlewhere_detail.php');
}

// 扩展条件公用模块配置
include_once(MODULEPARA_PATH.'/configmodule/configmodule/module/configwherecommon.php');
if($configinfo['modulepara'] == 'pc')include_once(MODULEPARA_PATH.'/configmodule/configmodule/module/pc/configwherecommon.php');
if($configinfo['modulepara'] == 'mobile')include_once(MODULEPARA_PATH.'/configmodule/configmodule/module/mobile/configwherecommon.php');
if($configinfo['modulepara'] == 'xcx')include_once(MODULEPARA_PATH.'/configmodule/configmodule/module/xcx/configwherecommon.php');

// 扩展其它模块配置
if($modulenamedir && $modulenamefile && $configinfo['configmodule'] == "list")
{
	include_once(MODULEPARA_PATH.'/configmodule/configmodule/module/'.$modulenamedir.'/'.$modulenamefile.'where.php');
	if($configinfo['modulepara'] == 'pc')include_once(MODULEPARA_PATH.'/configmodule/configmodule/module/'.$modulenamedir.'/pc/'.$modulenamefile.'where.php');
	if($configinfo['modulepara'] == 'mobile')include_once(MODULEPARA_PATH.'/configmodule/configmodule/module/'.$modulenamedir.'/mobile/'.$modulenamefile.'where.php');
	if($configinfo['modulepara'] == 'xcx')include_once(MODULEPARA_PATH.'/configmodule/configmodule/module/'.$modulenamedir.'/xcx/'.$modulenamefile.'where.php');
}
if($modulenamedir && $modulenamefile && $configinfo['configmodule'] == "detail")
{
	include_once(MODULEPARA_PATH.'/configmodule/configmodule/module/'.$modulenamedir.'/'.$modulenamefile.'where_detail.php');
	if($configinfo['modulepara'] == 'pc')include_once(MODULEPARA_PATH.'/configmodule/configmodule/module/'.$modulenamedir.'/pc/'.$modulenamefile.'where_detail.php');
	if($configinfo['modulepara'] == 'mobile')include_once(MODULEPARA_PATH.'/configmodule/configmodule/module/'.$modulenamedir.'/mobile/'.$modulenamefile.'where_detail.php');
	if($configinfo['modulepara'] == 'xcx')include_once(MODULEPARA_PATH.'/configmodule/configmodule/module/'.$modulenamedir.'/xcx/'.$modulenamefile.'where_detail.php');
}
?>